@function relativeValue($pixels) {
    $base-size: 12px;

    @if (unitless($pixels)) {
        $pixels: $pixels * 1px;
    }

    @return round( $pixels  * ($cf-base-font-size/$base-size) );
}

/**
 * Source: https://gist.github.com/certainlyakey/e9c0d8f5c87ff47e3d5b
 */
@function encodecolor($string) {
	@if type-of($string) == 'color' {
        $hex: str-slice(ie-hex-str($string), 4);
        $string:unquote("#{$hex}");
    }
    $string: '%23' + $string;
	@return $string;
}